package com.lovo.config;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ApplicationContextFactory {
    public static AnnotationConfigApplicationContext context =
            new AnnotationConfigApplicationContext(MyApplicationConfig.class);
    public static Object getBean(String beanName){
        return context.getBean(beanName);
    }
}
